import request from '../utils/request';
export const login = (data) => {
  console.log('data', data);
  return request.post('/login',{data:`username=${data.username}&password=${data.password}`});
};

export const checkUser = () => {
  return request.get('/user/check/${username}');
};

export const register = () => {
  return request.post('/regist');
};